Repository navigation
Conversation
f897032 to
fa3d973
Compare
it still uses old ASM based javaagent for < 25 |
583f3a5 to
b7e0754
Compare
We had discussed about moving from ASM in PMC last week - and also on a possibility of our own (JDT) Disassembler instead of ASM. For a similar work @SougandhS : also please have a look at this too: eclipse-pde/eclipse.pde#2477 (comment) |
|
@SougandhS - as we briefly discussed offline, let us not shift to ClassFile APIs completely. Let's use the classfile APIs for 25 and keep the ASM implementation (and dependency) as it is. Let's continue this model for sometime and see how it goes and then take a call after a few releases. This middle level transition would make sure that we have minimal disruption for our customers/upline products. I would let others (@iloveeclipse ?) weigh in here as well. Thanks! |
We'll create a new module for this |
|
@SougandhS - see also: eclipse-jdt/eclipse.jdt.core#5418 |
b7e0754 to
db6f6e1
Compare
01492a1 to
cf83804
Compare
|
Hi @iloveeclipse, can you re-check this new implementation ? |
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
The public agent argument API regresses to returning a path, and SMAP payloads use the wrong UTF-8 encoding.
Get a fresh assessment by requesting another Copilot review.
Review effort: Balanced
Findings: 1
Open (2)
What changed in this PR
Introduces a Java 25+ advanced-source-lookup agent using the JDK Class-File API while retaining the ASM agent for older JVMs.
Changes:
- Adds and packages the Java 25 agent.
- Selects the agent based on the configured JVM.
- Updates stratum testing for Java 25+.
| File | Description |
|---|---|
AdvancedSourceLookup.java |
Updates agent lookup delegation. |
AbstractJavaLaunchConfigurationDelegate.java |
Selects agents per launch configuration. |
AdvancedSourceLookupSupport.java |
Adds JVM-version-based agent selection. |
build.properties |
Packages the new agent JAR. |
ClassfileTransformer2.java |
Injects SMAP using the Class-File API. |
Premain.java |
Registers the new transformer. |
README.md |
Documents building and usage. |
pom.xml |
Configures the Java 25 agent build. |
META-INF/MANIFEST.MF |
Defines module metadata. |
.settings/org.eclipse.jdt.ui.prefs |
Adds UI preferences. |
.settings/org.eclipse.jdt.core.prefs |
Configures Java 25 compilation. |
.settings/org.eclipse.core.resources.prefs |
Sets project encoding. |
.project |
Defines the Eclipse project. |
.classpath |
Configures Java 25 dependencies. |
StratumTests.java |
Adjusts expectations for Java 25+. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
a8c3bf2 to
42a3126
Compare
|
Co-pilot review comments addressed 👍 |
42a3126 to
1f5a2c4
Compare
|
@iloveeclipse I have added this as an optional dependency as suggested With these changes I made a local sdk build and was working fine on mac 👍 Jar is now build on eclipse sdk build |
1f5a2c4 to
75c3d64
Compare
73572f3 to
6ccdee6
Compare
6ccdee6 to
877f2c4
Compare
|
@iloveeclipse Can you have a look at the current state ? |
Module uses the JDK 25's built-in java.lang.classfile API for SMAP/SourceDebugExtension injection. The Classfile API always supports its own JDK's class format, removing the need to update an ASM version ceiling for each new Java release. The existing org.eclipse.jdt.launching.javaagent module (ASM-based) is unchanged and continues to be used for debuggees running below Java 25."
877f2c4 to
445180b
Compare





Module uses the JDK 25's built-in java.lang.classfile API for
SMAP/SourceDebugExtension injection. The Classfile API always supports
its own JDK's class format, removing the need to update an ASM version
ceiling for each new Java release. The existing
org.eclipse.jdt.launching.javaagent module (ASM-based) is unchanged and
continues to be used for debuggees running below Java 25."
Also require eclipse-jdt/eclipse.jdt#169
What it does
How to test
Author checklist